<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>我的项目圈</title>
		<link rel="stylesheet" type="text/css" href="../css/vue.css"/>
		<link rel="stylesheet" type="text/css" href="../css/common.css"/>
		<link rel="stylesheet" type="text/css" href="../css/myProject.css"/>
	</head>
	<body>
		<!--公共头部 start-->
		<div class="commonHead">
			<div class="commonHeadLeft">
				<a href="javascript:void(0);"><img src="../img/indexLogo.png" class="houseLogo"/></a>
			</div>
			<div class="commonHeadCenter">
				<ul>
					<li>
						<a class="active">项目圈</a>
					</li>
					<li>
						<a>材料数据库</a>
					</li>
					<li>
						<a>计算工具</a>
					</li>
					<li class="clear"></li>
				</ul>
			</div>
			<div class="commonHeadRight">
				<div class="infoCenter">
					<a href="javascript:void(0);">
						<span class="iconfont-tcl">&#xe643;</span>
						<span class="infoCenterText">消息中心</span>
						<span class="remindCircle"></span>
					</a>
				</div>
				<div class="loginInfo">
					<el-dropdown trigger="click">
						<span class="el-dropdown-link">
						    Kdd<i class="el-icon-caret-bottom el-icon--right"></i>
						</span>
						<el-dropdown-menu slot="dropdown">
						    <el-dropdown-item>账号设置</el-dropdown-item>
						    <el-dropdown-item>退出</el-dropdown-item>
						</el-dropdown-menu>
					</el-dropdown>
				</div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<!--公共头部 end-->
		
		<!--公共侧边栏 start-->
		<div class="commonSide">
			<div class="sideTitle">项目圈</div>
			<ul class="sideMenu">
				<li class="active">
					<a href="javascript:void(0);">
						<span class="iconfont">&#xe611;</span>
						<span>我的项目</span>
					</a>
				</li>
				<li>
					<a href="javascript:void(0);">
						<span class="iconfont">&#xe60e;</span>
						<span>我的材料库</span>
					</a>
				</li>
				<li>
					<a href="javascript:void(0);">
						<span class="iconfont">&#xe610;</span>
						<span>我的收藏</span>
					</a>
				</li>
			</ul>
		</div>
		<!--公共侧边栏 end-->
		
		<!--内容 start-->
		<div class="content">
			<div class="contentTop">
				<div class="contentTitle">我的项目</div>
				<button class="contentControl">新建项目</button>
				<div class="help">
					<a href="javascript:void(0)">
						<span class="iconfont">&#xe60c;</span>
						<span>使用帮助</span>						
					</a>
				</div>
				<div class="clear"></div>
			</div>
			
			<!--项目圈内容 start-->
			<div class="myProject">	
				<div class="projectBox">	

					<div class="memberList">
						<ul>
							<li class="listDec">
								<div>工程名称</div>
								<div>目标等级</div>
								<div>建筑类型</div>
								<div>进度</div>
								<div>更新时间</div>
								<div>操作</div>
								<div class="clear"></div>
							</li>
							<ul>
								<li class="memberDec" v-for="projectList in projectForm">
									<div>{{projectList.name}}</div>
									<div>{{projectList.level}}</div>
									<div>{{projectList.type}}</div>
									<div>{{projectList.status}}</div>
									<div>{{projectList.time}}</div>
									<div>
										<a href="javascript:void(0);" class="load">载入</a>
										<a href="javascript:void(0);" class="finishReport">竣工报告</a>
									</div>
								</li>
							</ul>
							
						</ul>
					</div>
					<!--分页器 start-->
					<div class="block">
						<div class="fr">
							 <span class="demonstration fl">调整每页显示条数</span>
						    <el-pagination
						      @size-change="handleSizeChange"
						      @current-change="handleCurrentChange"
						      :current-page="1"
						      :page-sizes="[10, 20, 30, 40]"
						      :page-size="10"
						      layout="sizes, prev, pager, next"
						      :total="50"
						      class="fl">
						    </el-pagination>
						    <div class="clear"></div>
						</div>
					   <div class="clear"></div>
					</div>
					<!--分页器 end-->
				</div>
				
			</div>
			<!--项目圈内容 end-->
		</div>
		<!--内容 end-->
		
	</body>
	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/vue.js"></script>
	<script type="text/javascript" src="../js/vueComponent.js"></script>
	<script type="text/javascript" src="../js/component.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			//获取content最小高度
			var contentMinHeight = $(window).innerHeight() - 60;
			$('.content').css('min-height',contentMinHeight + 'px');
			//获取projectBox的最小高度
			var projectBoxMinHeight = contentMinHeight - 110;
			$('.projectBox').css('min-height',projectBoxMinHeight + 'px');
			
			//获取content宽度
			var contentWidth = $(window).innerWidth() - 180;
			$('.content').css('width',contentWidth + 'px');
		});
		
		var loginInfo = new Vue({
			el:'.loginInfo'
		});
		
		var myProject = new Vue({
			el:'.myProject',
			data:function(){
				return{
					projectForm:[
						{
							name:'北京学清园小区',
							level:'二级',
							type:'住宅',
							status:'启动',
							time:'2017-10-20 12:30'
						},
						{
							name:'北京学清园小区',
							level:'二级',
							type:'住宅',
							status:'启动',
							time:'2017-10-20 12:30'
						},
						{
							name:'北京学清园小区',
							level:'二级',
							type:'住宅',
							status:'启动',
							time:'2017-10-20 12:30'
						},
						{
							name:'北京学清园小区',
							level:'二级',
							type:'住宅',
							status:'启动',
							time:'2017-10-20 12:30'
						},
						{
							name:'北京学清园小区',
							level:'二级',
							type:'住宅',
							status:'启动',
							time:'2017-10-20 12:30'
						},
					]
				}
			},
			methods:{
				handleSizeChange(val) {
			        console.log(`每页 ${val} 条`);
			    },
			    handleCurrentChange(val) {
			        this.currentPage = val;
			        console.log(`当前页: ${val}`);
			    },
			    tabHandleExchange:function(){
			    	
			    }
			}
		});
	</script>
</html>
